* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    height: calc(100vh - 3rem);
    background-color: #f5f5f5;
    display: flex;
}

.category-list {
    font-size: 14px;
    width: 5.5rem;
}

.category-item {
    padding: 0.5rem;
    line-height: 1.5;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-item.active {
    background-color: #f1f1f1;
    font-weight: bold;
    border-left: 2px solid #ffbd27;
}

.goods-list {
    background-color: #fff;
    flex: 1;
}

.goods-item {
    display: flex;
    padding: 0.5rem;
    align-items: center;
}

.goods-item+.goods-item {
    margin-top: 0.5rem;
}

.goods-img {
    width: 5rem;
    height: 5rem;
    object-fit: cover;
    margin-right: 10px;
}

.goods-info {
    flex: 1;
}

.goods-name {
    font-weight: bold;
    margin-bottom: 2px;
}

.goods-desc {
    background-color: #f1f1f1;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    display: inline-block;
    margin-bottom: 4px;
}

.goods-row {
    display: flex;
    align-items: center;
    font-size: 12px;
    margin-bottom: 2px;
    color: #666;
}

.goods-sales {
    margin-right: 1rem;
}

.goods-confirm {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
}

.goods-price {
    font-size: 14px;
    color: #ffbd27;
    font-weight: bold;
}

.goods-price span {
    font-size: 12px;
}

.goods-btn {
    display: flex;
    align-items: center;
}

.goods-num {
    margin: 0 0.5rem;
}

.goods-btn .iconfont:active {
    opacity: 0.5;
}

.goods-item.choose .goods-sub,
.goods-item.choose .goods-num {
    display: flex;
}

.goods-sub {
    display: none;
}

.goods-num {
    display: none;
}

.goods-add {
    color: #ffbd27;
}

.footer {
    height: 3rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #333;
    display: flex;
    align-items: center;
}

.footer-cart {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #313131;
    margin-left: 1rem;
    margin-top: -1.5rem;
    color: #f1f1f1;
    position: relative;
    border: 3px solid #313131;
}

.footer-cart.active {
    background-color: #ffbd27;
}

.footer-cart.active .footer-cart-count {
    display: flex;
}

.footer-cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    padding: 0 0.4rem;
    height: 1rem;
    border-radius: 1rem;
    background-color: #ff1111;
    font-size: 10px;
    display: none;
    align-items: center;
    justify-content: center;
}

.footer-cart.animate {
    animation: cart 0.5s ease-in-out;
}

@keyframes cart {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(0.8);
    }

    50% {
        transform: scale(1.1);
    }

    75% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

.footer-totals {
    margin-left: 1rem;
    color: #f1f1f1;
    flex: 1;
}

.footer-totals-fee {
    font-size: 10px;
}

.footer-btn {
    height: 100%;
}

.footer-btn.calculate .btn {
    display: flex;
}

.footer-btn.calculate .threshold {
    display: none;
}

.footer-btn .threshold {
    background-color: #424242;
    padding: 0 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f1f1f1;
}

.footer-btn .btn {
    display: none;
    color: #f1f1f1;
    background-color: #ffbd27;
    height: 100%;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-size: 14px;
    font-weight: bold;
    padding: 0 2rem;
}

.add-to-cart {
    position: fixed;
    left: 0;
    top: 0;
    color: #ffbd27;
    font-size: 16px;
    line-height: 1;
    margin-left: -8px;
    margin-top: -8px;
    transition: all .5s linear;
}

.add-to-cart .iconfont {
    display: block;
    transition: all .5s cubic-bezier(0.5, -0.5, 1, 1);
}